package com.anne.fish.webapp.formbean;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.anne.fish.model.Area;
import com.anne.fish.model.IpAddress;

public class CanstantCache {

	private List<IpAddress> ips;
	
	private Map<String ,Area> areas;
	
	private List<Area> provinces;

	public List<Area> getProvinces() {
		return provinces;
	}

	public void setProvinces(List<Area> provinces) {
		this.provinces = provinces;
	}

	public Map<String ,Area> getAreas() {
		return areas;
	}

	public void setAreas(List<Area> _areas) {
		this.areas = new HashMap<String ,Area>();
		for(Area area:_areas){
			this.areas.put(area.getName(), area);
		}
	}

	public List<IpAddress> getIps() {
		return ips;
	}

	public void setIps(List<IpAddress> ips) {
		this.ips = ips;
	}
}
